(function (defTime, linkInfo) {
    jQuery.ajax({
        type: "POST",
        url: "http://" + linkInfo[0] + "/proj/studentwork/studyAjax/AddStudyTimeExit.json?time=" + defTime,
        dataType: "json",
        data: "courseId=" + linkInfo[3].split('?')[1].split('&')[0].split('=')[1] + "&studyTime=" + defTime,
        success: function (msg) {
            if (msg != 0) {
                alert("提交成功");
            } else {
                alert("退出登录或关闭浏览器，两小时后登录重试");
            }
        }
    });
})((confirm("确定->加满750分钟，取消->添加60分钟") ? 45000 : 3600), document.location.href.split('//')[1].split('/'));